import Vue from 'vue';
import vuex from 'vuex';
Vue.use(vuex)

export default new vuex.Store({
    state:{
        isActive:0,
        listid:'',
        user:[],
        num:'1'//判断登录
    },
    mutations:{
        listid(state,id){
            state.listid = id;
        },
        isActive(state,id){
            state.isActive = id
        },
        user(state,user){
           state.user = state.user.concat(user)
        },
        num(state,num){
            state.num = state.num.concat(num)
        }
    }
})
